﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="验证注册页面.WebForm2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <h1>登录</h1>
            账号（用户名）：
            <asp:TextBox ID="Loading" runat="server" ></asp:TextBox>
            <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="名字不能为admin" OnServerValidate="CustomValidator2_ServerValidate" ValidationGroup="loading"></asp:CustomValidator>
            <br />
            密码：
            <asp:TextBox ID="Password1" runat="server" TextMode="Password"></asp:TextBox>

            <br />
           
            <asp:Button ID="Button1" runat="server" Text="登录"  OnClick="Button1_Click" />
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="loading"/>
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>

        </div>
    </form>
</body>
</html>
